Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor: update buildkit to 62e55427 #1800

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

tonistiigi
Copy link
Member

Brings in latest buildkit, including new progress formatting and tar output.

docker build -o type=tar,dest=file.tar .
docker build -o - . > file.tar

@tiborvass @AkihiroSuda

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@codecov-io
Copy link

codecov-io commented Apr 3, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@5bbb56b). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master    #1800   +/-   ##
=========================================
  Coverage          ?   56.19%           
=========================================
  Files             ?      308           
  Lines             ?    21319           
  Branches          ?        0           
=========================================
  Hits              ?    11980           
  Misses            ?     8465           
  Partials          ?      874

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
"dest": s,
},
})
if len(fields) == 1 && fields[0] == s && !strings.HasPrefix(s, "type=") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this behavior is confusing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If docker build -o - produces tar, user would also except docker build -o a to produce tar

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

csv is the main format. non csv is an output path similar to many other tools. And - path does not make sense as a directory name, so as many other tools it means outputting to stdout(and we can't write a directory to stdout).

If docker build -o - produces tar, user would also except docker build -o a to produce tar

Somewhat yes, but docker build always produces a directory(list of files), not a single file. Most common (and promoted) way to use it should be docker build -o . . meaning input from current and output to current, while cat in.tar | docker build -o - - > out.tar also follows same pattern.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we do not support docker build ctx.tar either.

@tiborvass
Copy link
Collaborator

Ping @silvin-lubecki

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -76,7 +76,9 @@ github.com/spf13/cobra v0.0.3
github.com/spf13/pflag 4cb166e4f25ac4e8016a3595bbf7ea2e9aa85a2c https://github.com/thaJeztah/pflag.git
github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852
github.com/theupdateframework/notary v0.6.1
github.com/tonistiigi/fsutil 1ec1983587cde7e8ac2978e354ff5360af622464
github.com/tonistiigi/fsutil 3bbb99cdbd76619ab717299830c60f6f2a533a6b
github.com/jaguilar/vt100 ad4c4a5743050fb7f88ce968dca9422f72a0e3f2 git://github.com/tonistiigi/vt100.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This something we can contribute upstream? (I see the repo hasn't been active for 4 years, so if that doesn't work, alternatively we'd have to officially fork it?)

@thaJeztah
Copy link
Member

@tonistiigi can you do docs updates and completion-script updates in a follow up? /cc @albers

@thaJeztah thaJeztah merged commit 7ad850e into docker:master Apr 3, 2019
@GordonTheTurtle GordonTheTurtle added this to the 19.03.0 milestone Apr 3, 2019
@andrewhsu andrewhsu mentioned this pull request Apr 5, 2019
2 tasks
@albers
Copy link
Collaborator

albers commented Apr 5, 2019

@tonistiigi, @thaJeztah Support for -o in bash completion is added as part of #1810.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants